package com.cc8w.home.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cc8w.entity.UserEntity;
import com.cc8w.home.mapper.UserMapper;

@Service
public class UserService {
	@Autowired
	public UserMapper userMapper;
	
	public UserEntity queryUserByUserName(String name) {
		return userMapper.queryUserByUserName(name);
	}

	
	public UserEntity queryUserByUserName1(String name) {
		return userMapper.queryUserByUserName(name);
	}
	
	public List <UserEntity> getAll(){	
		return userMapper.getAll();
	}

}
